/******************************************************************************
 copyright (C), 2016, hisilicon tech. co., ltd.
******************************************************************************
file name     : mkp_pm.h
version       : initial draft
author        : hisilicon multimedia software group
created       : 2016/07/15
last modified :
description   :
function list :
******************************************************************************/

#ifndef __MKP_PM_H__
#define __MKP_PM_H__

#include "hi_math.h"
#include "hi_common.h"

#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* end of #ifdef __cplusplus */


/* use 'r' as magic number */
#define PM_IOC_MAGIC  'r'
#define PM_SET_MEDIA_PARAM                  _IOW(PM_IOC_MAGIC, 1, hi_mpi_pm_media_cfg)
#define PM_GET_MEDIA_PARAM                  _IOR(PM_IOC_MAGIC, 2, hi_mpi_pm_media_cfg)
#define PM_SET_SINGLE_MEDIA_PARAM     _IOW(PM_IOC_MAGIC, 3, hi_mpi_pm_sigle_media_cfg)
#define PM_SVP_ENABLE_CTRL                    _IO(PM_IOC_MAGIC, 4)
#define PM_DVFS_ENABLE_CTRL                  _IO(PM_IOC_MAGIC, 5)
#define PM_DVFS_DISABLE_CTRL                 _IO(PM_IOC_MAGIC, 6)
#define PM_GET_TEMPERATURE                 _IOR(PM_IOC_MAGIC, 7,hi_u32)


#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* end of #ifdef __cplusplus */

#endif


